<!-- TMPL_VAR NAME=doctype_head -->

  <title>WURFL Test - <!-- TMPL_VAR NAME=company_name --></title>

<link rel='stylesheet' type='text/css' charset='utf-8' href="<!-- TMPL_VAR NAME=site_base_url -->stylesheets/mobile.css" media='all' />

<!-- TMPL_VAR NAME=internal_style -->

</head>
<body>
<div id='body'>
    <div class="header">
      <img alt="<!-- TMPL_VAR NAME=company_name -->" src="<!-- TMPL_VAR NAME=site_base_url -->images/logo176.gif" width="112" height="50" title="<!-- TMPL_VAR NAME=company_alt -->" /><br />
      <a href="<!-- TMPL_VAR NAME=cgi_url -->&amp;page=home">Home</a> | WURFL - JScript
    </div>
    <!-- TMPL_VAR NAME=insert_ad_here -->
    <div id='status'><span class='alert'><!-- TMPL_VAR NAME=user_status --></span></div>
    <div class="content">
      <h3>JavaScript and WURFL Data</h3>
      <div class='pgrph'>
        This page is used to demo the function of your WURFL Perl Data detection code. Run it occasionally
	using different small screen devices or use smartphone/pda emulation software to test different 'user agent'
	strings to make sure they are being recognized correctly.
      </div>
      <div class='pgrph'>
	To run this page, enter this url in your browser:<br />
	<a href='<!-- TMPL_VAR NAME=site_base_url -->index.html?debug=yes' title='CSS display detection'><!-- TMPL_VAR NAME=site_base_url -->index.html?debug=yes</a>
      </div>
      <div class='pgrph'>
	This runs normal CSS display detection. To force the use of WURFL data, enter this:<br />
	<a href='<!-- TMPL_VAR NAME=site_base_url -->index.html?debug=test_wurfl' title='CSS display detection using WURFL'><!-- TMPL_VAR NAME=site_base_url -->index.html?debug=test_wurfl</a><br />
	Don't forget to clear your browser's cache in order to see the whole process at work.
      </div>
      <div class='pgrph'>
        Detection information is gathered from the user's browser by JavaScript (if available)
        or by using the<a href='http://wurfl.sourceforge.net' title='Wireless Universal Resource File'>WURFL Project's</a>
        XML data. The mobile.cgi script uses Perl to extract the WURFL data for our needs. This info is then used to
	decide on what size display to provide, and set a cookie. Please note, detection follows this logic path: cookie
	detection for return visits first, JavaScript detection for advanced browsers second, then finally WURFL
	detection as a 'last resort'.
      </div>
    </div>

    <h2>CSS Display Detection</h2>
    <div class='list'>
      <ul>
        <li>Detection Method Used:<br /><!-- TMPL_VAR NAME=css_display_detect --></li>
      </ul>
    </div>

    <h2>Javascript Info</h2>
    <div class='list'>
      <ul>
        <li>Browser Code Name:<br /><!-- TMPL_VAR NAME=code_name --></li>
        <li>Browser Application:<br /><!-- TMPL_VAR NAME=appl_name --></li>
        <li>Browser Version:<br /><!-- TMPL_VAR NAME=appl_ver --></li>
        <li>User Agent:<br /><!-- TMPL_VAR NAME=user_agent --></li>
        <li>Browser Platform:<br /><!-- TMPL_VAR NAME=platform --></li>
        <li>Browser Minor Version:<br /><!-- TMPL_VAR NAME=app_minor_ver --></li>
        <li>User CPU Class:<br /><!-- TMPL_VAR NAME=CPU_class --></li>
        <li>User Cookies Enabled:<br /><!-- TMPL_VAR NAME=cookie_enabled --></li>
        <li>User Profile:<br /><!-- TMPL_VAR NAME=user_profile --></li>
        <li>System Language:<br /><!-- TMPL_VAR NAME=system_lang --></li>
        <li>User Online:<br /><!-- TMPL_VAR NAME=online --></li>
        <li>User Screen Width:<br /><!-- TMPL_VAR NAME=scr_width --></li>
        <li>User Screen Height:<br /><!-- TMPL_VAR NAME=scr_height --></li>
        <li>User Color Depth:<br /><!-- TMPL_VAR NAME=scr_color --></li>
        <li>Browser Plugins:<br /><!-- TMPL_VAR NAME=nav_plugins --></li>
        <li>Browser Mime Types:<br /><!-- TMPL_VAR NAME=nav_mime --></li>
        <li>Language:<br /><!-- TMPL_VAR NAME=language --></li>
        <li>User Language:<br /><!-- TMPL_VAR NAME=user_lang --></li>
        <li>Browser Language:<br /><!-- TMPL_VAR NAME=browser_lang --></li>
      </ul>
    </div>

    <h2>WURFL Info</h2>
    <div class='list'>
      <ul>
        <li>HTTP user agent:<br /><!-- TMPL_VAR NAME=http_user_agent --></li>
	<li>Encoded user agent:<br /><!-- TMPL_VAR NAME=encoded_user_agent --></li>
      </ul>
    </div>

    <h3>User Agent Possibiles List</h3>
    <div class='list'>
      <ul>
        <!-- TMPL_VAR NAME=wurfl_ua_possibles -->
      </ul>
    </div>

    <h3>WURFL-Perl Build w/Fallbacks</h3>
    <div class='list'>
      <ul>
        <!-- TMPL_VAR NAME=wurfl_ua_build -->
      </ul>
    </div>

    <h3>User Agent Capabilities</h3>
    <div class='list'>
      <ul>
        <!-- TMPL_VAR NAME=wurfl_ua_capability -->
      </ul>
    </div>

<div class="footer">
    <a href="<!-- TMPL_VAR NAME=cgi_url -->&amp;page=home">Home</a> | WURFL - JScript<br />
    © <!-- TMPL_VAR NAME=company_name --> All rights reserved.<br />
    <span class='powered_by'>Powered by <a href="http://opensitemobile.com">MobileSiteOS</a>™</span>
</div>

</div>
</body>
</html>